﻿using Epoxy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EpoxyDemo
{
    class GenderValueConverter : ValueConverter<Gender, string>
    {
        public override bool TryConvert(Gender from, out string result)
        {
            if(from == Gender.Male)
            {
                result = "男";
            }
            else 
            {
                result = "女";
            }
            return true;
        }
    }
}
